<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $('#submitLink').click(function(){
       $('#registerId').attr('action','http://facebook.com'); 
      $('#registerId').submit();  
  
    
    })
  });
</script>

<form name="register" id="registerId">
  <input name="email">
  <a href="#" id="submitLink">
  Click Here to Submit
  </a>
</form>